package com.googlecode.rjm.model.journal;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import com.googlecode.rjm.model.Project;

@Entity
@DiscriminatorValue(value = "attr#project_id")
public class ProjectJournalDetail extends JournalDetail<Project> {

	private static final long serialVersionUID = 1L;

	@Override
	public Project getTypedValue() {
		return loadObjectFromId(this.getValue(), Project.class);
	}

	@Override
	public Project getOldTypedValue() {
		return loadObjectFromId(this.getOldValue(), Project.class);
	}

}
